//
//  BaseHttpRequest.h
//  FLMSuperS
//
//  Created by xiaoyang on 16/9/10.
//  Copyright © 2016年 FaLaoMiaoNetworkTechnologyCo. All rights reserved.
//



typedef NS_ENUM(NSInteger, AFRequestMethod) {
    AFRequestMethodGET,
    AFRequestMethodPOST,
    AFRequestMethodPUT,
    AFRequestMethodDELETE
};

typedef void (^RequestCompletionBlock)(BOOL isSuccess, id object);
typedef void (^RequestCodeCompletionBlock)(BOOL isSuccess, NSString *code, id object);


#import <Foundation/Foundation.h>

@interface BaseHttpRequest : NSObject
+ (NSString *)md5HexDigest:(NSString*)input;

+(void)loginWithURL:(NSString *)serverUrl
         parameters:(NSMutableDictionary *)paras
            success:(void (^)(id *dicData))success
               fail:(void (^)(NSError *error))fail;
@end
